<?php
/**
 * 队列，更新视频信息
 */

use Doraemon\tools\Log;

class ChangeVideoInfoAction extends QueueActionPlugin
{
    public function main()
    {
        $videoId = $this->getRequest()->getPost('video_id', '');
        Log::debug('video_id:'.$videoId);
        if ($videoId) {
            \Biz\service\course\AdmCourse::changeVideoInfo($videoId);
            $this->setSuccess();
        } else {
            throw new \Exception('传递参数错误', -1);
        }
    }
}